package mysql;

import entity.News;
import entity.NewsCategory;

import java.sql.ResultSet;

public interface NewsDao {

    //根据标题查询
    public ResultSet getNewsById(News news);
    //增加
    public void addNews(News news);
    //删除
    public void deleteNews(News news);
    //修改
    public void UpdateNews(News news );
    //根据分类信息查询
    public int getNewsCount(NewsCategory newsCategory);

}
